package com.ruoyi.flowable.listener;

import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.TaskListener;
import org.flowable.task.service.delegate.DelegateTask;

/**
 * @author Xuan xuan
 * @date 2021/4/20
 */
@Slf4j
public class UserTaskListener implements TaskListener{

    @Override
    public void notify(DelegateTask delegateTask) {
        System.out.printf(delegateTask.getCategory());
        System.out.printf(delegateTask.getName());
        System.out.printf(delegateTask.getId());
    }

}
